/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.web.entity.WxAgentsEquipment;


/**
 * 代理商绑定设备MAPPER接口
 * @author rongjie
 * @version 2017-08-06
 */
@MyBatisMapper
public interface WxAgentsEquipmentMapper extends BaseMapper<WxAgentsEquipment> {
    /**
     * 查看是否已 绑定过
     * @param number
     * @return
     */
    int getNumberCount(String number);

    /***
     * 绑定设备
     * @param id
     * @param number
     * @return
     */
    int addAgentsEquipment(@Param("id") String id, @Param("number") String number);

    /**
     * 批量绑定代理商和设备
     * @param wxAgentsEquipmentList
     * @return
     */
    int batchAddAgentsEquipment(List<WxAgentsEquipment> wxAgentsEquipmentList);

    
    List<WxAgentsEquipment> getEquipmentsByAgentID(@Param("agentID") int agentID);
    
 }